package com.sne.sys.entity;

import com.sne.common.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 字典管理
 * </p>
 *
 * @author fanghh
 * @since 2020-01-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysDict对象", description = "字典管理")
public class SysDict extends BaseModel<SysDict> {

    @NotBlank(message = "字典编号不为空")
    @ApiModelProperty(value = "字典编号")
    private String dictCode;

    @NotBlank(message = "字典名称不为空")
    @ApiModelProperty(value = "字典名称")
    private String dictName;

    @NotNull(message = "状态不为空")
    @ApiModelProperty(value = "状态")
    private Boolean state;

    @ApiModelProperty(value = "备注")
    private String note;

}
